package com.longge;

public class HasTrailingZeros {

    public boolean hasTrailingZeros(int[] nums) {

        for (int i = 0; i < nums.length; i++) {
            for (int j = i + 1; j < nums.length; j++) {
                if (checkEndWithZero(nums[i] | nums[j])) {
                    return true;
                }
            }
        }
        return false;
    }

    private boolean checkEndWithZero(int i) {
        return Integer.toBinaryString(i).endsWith("0");

    }
}
